<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>后台登录-X-admin1.1</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/admin/css/font.css">
	<link rel="stylesheet" href="/admin/css/xadmin.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/Swiper/3.4.2/css/swiper.min.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdn.bootcss.com/Swiper/3.4.2/js/swiper.jquery.min.js"></script>
    <script src="/admin/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/admin/js/xadmin.js"></script>

</head>
<body>
    <!-- 顶部开始 -->
    {include file="public/topmenu" /}
    <!-- 顶部结束 -->
    <!-- 中部开始 -->
    <div class="wrapper">
        <!-- 左侧菜单开始 -->
        {include file="public/leftmenu" /}
        <!-- 左侧菜单结束 -->
        <!-- 右侧主体开始 -->
        <div class="page-content">
          <div class="content">
            <!-- 右侧内容框架，更改从这里开始 -->
            <xblock><span>共有演出：{$ticket_count} 场</span></xblock>
            <table class="layui-table">
                <thead>
                    <tr>
                        <th>
                            ID
                        </th>
                        <th>
                            时间
                        </th>
                        <th>
                            地点
                        </th>
                        <th>
                            总票数
                        </th>
                        <th>
                            余票数
                        </th>
                        <th>
                            管理
                        </th>
                    </tr>
                </thead>
                <tbody>
                    {volist name="ticket_lists" id="back"}
                    <tr>
                        <td>
                            {$back.id}
                        </td>
                        <td>
                            {$back.time}
                        </td>
                        <td >
                            {$back.location}
                        </td>
                        <td>
                            {$back.total_num}
                        </td>
                        <td>
                            {$back.last_num}
                        </td>
                        <td>
                            <form class="layui-form layui-form-pane" action="/admin/main/dostart" method="post">
                                <button class="btn btn-warning pull-right" lay-submit lay-filter="login" type="submit">开始放票</button>
                            </form>
                        </td>
                    </tr>
                    {/volist}
                </tbody>
            </table>
            <!-- 右侧内容框架，更改从这里结束 -->
          </div>
        </div>
        <!-- 右侧主体结束 -->
    </div>
    <!-- 中部结束 -->
    <!-- 底部开始 -->
    <div class="footer">
        <div class="copyright">Copyright ©2017 x-admin v2.3 All Rights Reserved. 本后台系统由X前端框架提供前端技术支持</div>
    </div>
    <!-- 底部结束 -->

</body>
</html>